import request from '@/utils/request'

export default {

  PageByCondition(current, limit, RefuelQuery) {
    return request({
      url: `/refueling-record/pageUnitByConditon/${current}/${limit}`,
      method: 'post',
      data: RefuelQuery
    })
  },

  deleteRefuelById(ids) {
    return request({
      url: `/refueling-record/delRefuel/${ids}`,
      method: 'get',
      data: ids,
    })
  },

  saveRefuel(Refueling) {
    return request({
      url: `/refueling-record/saveRefueling`,
      method: 'post',
      data: Refueling
    })
  },
  findRefuel(id) {
    return request({
      url: `/refueling-record/findRefuelById/${id}`,
      method: 'get'
    })
  },
  updateRefuel(Refueling) {
    return request({
      url: `/refueling-record/updateRefuel`,
      method: 'post',
      data: Refueling
    })
  },
  findAll() {
    return request({
      url: `/refueling-record/findAll`,
      method: 'post'
    })
  },
  findById(id){
    return request({
      url: `/refueling-record/findById/${id}`,
      method: 'post'

    })
  }
}
